package com.ruoyi.home.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 校区公告对象 su_campus_ads
 *
 * @author ruoyi
 * @date 2025-06-18
 */
public class SuCampusAds extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 广告标题 */
    @Excel(name = "广告标题")
    private String title;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 分类标签 */
    @Excel(name = "分类标签")
    private String tag;

    /** 状态(0-下架,1-上架,2-删除) */
    @Excel(name = "状态(0-下架,1-上架,2-删除)")
    private Integer status;

    /** 校区ID */
    @Excel(name = "校区ID")
    private Integer campusId;

    /** 校区名称 */
    @Excel(name = "校区名称")
    private String campusName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setPublishTime(Date publishTime)
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime()
    {
        return publishTime;
    }

    public void setTag(String tag)
    {
        this.tag = tag;
    }

    public String getTag()
    {
        return tag;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setCampusId(Integer campusId)
    {
        this.campusId = campusId;
    }

    public Integer getCampusId()
    {
        return campusId;
    }

    public void setCampusName(String campusName)
    {
        this.campusName = campusName;
    }

    public String getCampusName()
    {
        return campusName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("publishTime", getPublishTime())
            .append("tag", getTag())
            .append("status", getStatus())
            .append("campusId", getCampusId())
            .append("campusName", getCampusName())
            .toString();
    }
}
